var currentUrl = window.location.href;
var	rMsie = /(msie\s|trident.*rv:)([\w.]+)/,
    rFirefox = /(firefox)\/([\w.]+)/,
    rOpera = /(opera).+version\/([\w.]+)/,
    rSafari = /version\/([\w.]+).*(safari)/,
    rChrome = /(chrome)\/([\w.]+)/;
var browser;
var version;
function uaMatch(ua){
    var match = rMsie.exec(ua);
    if(match != null){
        return { browser : "IE", version : match[2] || "0" };
    }
    var match = rFirefox.exec(ua);
    if (match != null) {
        return { browser : match[1] || "", version : match[2] || "0" };
    }
    var match = rOpera.exec(ua);
    if (match != null) {
        return { browser : match[1] || "", version : match[2] || "0" };
    }
    var match = rChrome.exec(ua);
    if (match != null) {
        return { browser : match[1] || "", version : match[2] || "0" };
    }
    var match = rSafari.exec(ua);
    if (match != null) {
        return { browser : match[2] || "", version : match[1] || "0" };
    }
}
var userAgent = navigator.userAgent.toLowerCase();
var browserMatch = uaMatch(userAgent);
if (browserMatch.browser){
    browser = browserMatch.browser;
    version = browserMatch.version;
    version = version.split(".")[0];
}
if(browser == "IE"){
    if(version<10){
        //如果当前访问的地址中包含了clientID，就放行(过滤专业版)
        if(currentUrl.indexOf("clientID")<0){
            window.location.replace(userUrl);
        }
    }
}
if(browser == "firefox"){
    if(version < 20){
        window.location.replace(userUrl);
    }
}
if(browser == "chrome"){
    if(version < 26){
        window.location.replace(userUrl);
    }
}